import request from '@/utils/request'


// 查询风险事件列表
export function listRiskEvent(query) {
    return request({
      url: '/risk/event/list',
      method: 'get',
      params: query
    })
  }


// 新增风险事件
export function addRiskEvent(data) {
    return request({
      url: '/risk/event',
      method: 'post',
      data: data
    })
  }

  // 删除风险事件清单
export function deleteRiskEvent(riskEventId) {
    return request({
      url: '/risk/event/'+riskEventId,
      method: 'delete',      
    })
}
// 修改风险事件清单
export function updateRiskEvent(data) {
    return request({
      url: '/risk/event',
      method: 'put',
      data: data
    })
  }
// 查询风险事件清单详细信息
export function getRiskEvent(riskEventId) {
    return request({
      url: '/risk/event/' + riskEventId,
      method: 'get'
    })
  }  